package com.elvende.web.client.presenter;

import com.elvende.web.client.service.GreetingServiceAsync;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;


public class HeritagePresenter implements Presenter {
	 private final GreetingServiceAsync rpcService;
	  private final HandlerManager eventBus;
	  private final Display display;
	
	 public HeritagePresenter(GreetingServiceAsync rpcService, HandlerManager eventBus, Display view) {
		    this.rpcService = rpcService;
		    this.eventBus = eventBus;
		    this.display = view;
	 }
	 
	public interface Display {
		Widget asWidget();
	}

	public void bind() {		
	}
	
	public void go(HasWidgets container) {
	    bind();
	    container.clear();
	    container.add(display.asWidget());
	}
}
